package com.xiaojimao.gr_user.vo.req;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;

@Data
public class UserStatus {

    /**
     * 用户id
     */
    @TableId
    @NotBlank(message = "参数不能为空")
    private String id;

    /**
     * 用户状态 0 异常 1 正常
     */
    @NotBlank(message = "参数不能为空")
    @Max(value = 1, message = "参数只能为0或1")
    @Min(value = 0, message = "参数只能为0或1")
    private String status;

}
